// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "UI/Core/RuleWidget.h"
#include "UI_InventorySlot.generated.h"

class UTextBlock;
class UImage;
/**
 * 
 */
UCLASS()
class TF_20240717_API UUI_InventorySlot : public URuleWidget
{
	GENERATED_BODY()

	UPROPERTY(meta=(BindWidget))
	UImage* TowerIcon;

	UPROPERTY(meta=(BindWidget))
	UImage* TowerCD;

	// 防御塔准备构建的数量
	UPROPERTY(meta=(BindWidget))
	UTextBlock* TowerPrepareNumber;

	// 防御塔构建完成的数量
	UPROPERTY(meta=(BindWidget))
	UTextBlock* TowerCompletedNumber;

	// 防御塔放置CD
	UPROPERTY(meta=(BindWidget))
	UTextBlock* TowerCDValue;

	UPROPERTY(meta=(BindWidget))
	class UButton* TowerButton;

public:
	virtual void NativeConstruct() override;

private:
	void OnClickedWidget();
};
